from openpyxl import Workbook

# 创建工作簿和工作表
wb = Workbook()
ws = wb.active
ws.title = "DataSheet"

# 写入数据
ws['A1'] = "Hello"
ws['B1'] = "OpenPyXL"

# 保存文件
wb.save("example.xlsx")
